package com.pets.springboot_petshop.service;

import com.pets.springboot_petshop.entity.DailyProfit;
import com.pets.springboot_petshop.entity.MonthlyProfit;
import com.pets.springboot_petshop.entity.Serviceappointment;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/14 下午4:34 周一
 * @Description: 用户服务预约服务接口接口
 */
public interface ServiceappointmentService {
//    id查询
Serviceappointment select(int id);
    //appointmentslot_id查询
    List<Serviceappointment> selectappointmentslot_id(int appointmentslot_id);
    List<Serviceappointment> selectuser_id(int user_id);
    List<Serviceappointment> selectstatus(String status);
    //service_id查询
    List<Serviceappointment> selectname(String name);
    List<Serviceappointment> selectordernumber(int ordernumber);
    int adminupdate(Serviceappointment serviceappointment);
    List<Serviceappointment> selectOrder(LocalDate date);
    //查询所有
     List<Serviceappointment> findAll();
    //添加
    int add(Serviceappointment serviceappointment);
    //删除
    int delete(int id);
    //修改数据
    int update(Serviceappointment serviceappointment);
    int updateServiceappointmentstatus(Serviceappointment serviceappointment);
    int updatetk_status(Serviceappointment serviceappointment);
    // 管理员批量修改status
    int batchUpdateStatus(@Param("array") int[] ids, @Param("status") String status);
    // 管理员批量删除
    int admindelete(@Param("array") int[] ids);
    //年销售
    List<MonthlyProfit> selectMonthlyProfit(@Param("year") int year);
    //月销售
    List<DailyProfit> selectDailyProfit(@Param("year") int year, @Param("month") int month);
}
